package com.time.admin.domain.converter;

import com.time.admin.domain.entity.CommentBO;
import com.time.admin.infra.basic.entity.Comment;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 评论BO转换器类
 *
 * @author: HuangQi
 * @date: Created in 10:53 2025/11/3
 * @description: 评论BO转换器类
 */
@Mapper
public interface CommentBOConverter {

    CommentBOConverter INSTANCE = Mappers.getMapper(CommentBOConverter.class);

    Comment convertBOToEntity(CommentBO commentBO);

    List<CommentBO> convertEntityListToBO(List<Comment> commentList);
}
